package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 1:25:05 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * DvTiraje generated by hbm2java
 */
@Entity
@Table(name = "DV_TIRAJE", schema = "DEVOLUCIONES")
public class DvTiraje implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2332878092288392246L;
	private Long ntiraje;
	private Date fhitiraje;
	private Date fhftiraje;
	private String cusuario;
	private Date fhingreso;
	private Long nemision;
	private Set<DvErroresPagos> dvErroresPagoses = new HashSet<DvErroresPagos>(
			0);

	public DvTiraje() {
	}

	public DvTiraje(Long ntiraje, Long nemision) {
		this.ntiraje = ntiraje;
		this.nemision = nemision;
	}

	public DvTiraje(Long ntiraje, Date fhitiraje, Date fhftiraje,
			String cusuario, Date fhingreso, Long nemision,
			Set<DvErroresPagos> dvErroresPagoses) {
		this.ntiraje = ntiraje;
		this.fhitiraje = fhitiraje;
		this.fhftiraje = fhftiraje;
		this.cusuario = cusuario;
		this.fhingreso = fhingreso;
		this.nemision = nemision;
		this.dvErroresPagoses = dvErroresPagoses;
	}

	@Id
	@Column(name = "N_TIRAJE", unique = true, nullable = false, precision = 10, scale = 0)
	public Long getNtiraje() {
		return this.ntiraje;
	}

	public void setNtiraje(Long ntiraje) {
		this.ntiraje = ntiraje;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FHI_TIRAJE", length = 7)
	public Date getFhitiraje() {
		return this.fhitiraje;
	}

	public void setFhitiraje(Date fhitiraje) {
		this.fhitiraje = fhitiraje;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FHF_TIRAJE", length = 7)
	public Date getFhftiraje() {
		return this.fhftiraje;
	}

	public void setFhftiraje(Date fhftiraje) {
		this.fhftiraje = fhftiraje;
	}

	@Column(name = "C_USUARIO", length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", length = 7)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@Column(name = "N_EMISION", nullable = false, precision = 10, scale = 0)
	public Long getNemision() {
		return this.nemision;
	}

	public void setNemision(Long nemision) {
		this.nemision = nemision;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dvTiraje")
	public Set<DvErroresPagos> getDvErroresPagoses() {
		return this.dvErroresPagoses;
	}

	public void setDvErroresPagoses(Set<DvErroresPagos> dvErroresPagoses) {
		this.dvErroresPagoses = dvErroresPagoses;
	}

}
